package com.code.exam.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("试题返回数据格式")
public class QuestionVO implements Serializable {

    @ApiModelProperty("试题id")
    private Long id;

    @ApiModelProperty("题干内容")
    private String content;

    @ApiModelProperty("选项内容")
    private Map<String,String> options;

    @ApiModelProperty("正确答案")
    private String answer;

    @ApiModelProperty("题目类型")
    private String type;

    @ApiModelProperty("题目创建者")
    private Long createdBy;
}
